﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace EvertonApp.Data
{
    public interface IRepository<T>
    {
        T Insert(T entity);
        bool Delete(T entity);
        bool Update(Guid id, T entity);
        IQueryable<T> SearchFor(Expression<Func<T, bool>> predicate);
        IQueryable<T> GetAll();
        T GetById(Guid id);
    }
}
